<?php
/**
* @version		$Id: demo1.xml.php 2010-07-15 vinaora $
* @package		VINAORA MP3 PLAYER
* @copyright	Copyright (C) 2010 VINAORA. All rights reserved.
* @license		GNU/GPL
* @website		http://vinaora.com
* @email		admin@vinaora.com
* 
*/

$script = $_SERVER['SCRIPT_NAME'];

// Get the beginning of URL
// Eg: URL = /media/mod_vinaora_mp3player/config/demo.xml.php --> Result = /
// Eg: URL = /path/to/sub/directory/media/mod_vinaora_mp3player/config/demo.xml.php --> Result = /path/to/sub/directory/
$base_path = substr($script, 0 , strpos($script, 'media/mod_vinaora_mp3player'));

header ("content-type: text/xml");

// Uncomment the follow line if you want to enable caching
// header ("Cache-Control: max-age=900, must-revalidate");
?>

<playlist>
	<trackList>
		<track>
			<location><?php echo $base_path; ?>media/mod_vinaora_mp3player/mp3/default/welcome.mp3</location>
			<title>Welcome EP Player</title>
			<creator>EP</creator>
		</track>
		<track>
			<location><?php echo $base_path; ?>media/mod_vinaora_mp3player/mp3/default/welcome.mp3</location>
			<title>Vinaora MP3 Player</title>
			<creator>VINAORA</creator>
		</track>
		<track>
			<location><?php echo $base_path; ?>media/mod_vinaora_mp3player/mp3/default/welcome.mp3</location>
			<title>Vinaora Cu3er 3D Slideshow</title>
			<creator>VINAORA</creator>
		</track>
		<track>
			<location><?php echo $base_path; ?>media/mod_vinaora_mp3player/mp3/default/welcome.mp3</location>
			<title>Vinaora Slick Slideshow</title>
			<creator>VINAORA</creator>
		</track>
		<track>
			<location><?php echo $base_path; ?>media/mod_vinaora_mp3player/mp3/default/welcome.mp3</location>
			<title>Vinaora Visitors Counter</title>
			<creator>VINAORA</creator>
		</track>
	</trackList>
</playlist>